// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

// .el-date-editor--daterange.el-input, .el-date-editor--daterange.el-input__inner, .el-date-editor--timerange.el-input, .el-date-editor--timerange.el-input__inner {
//   min-width: 225px;
// }

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

//tablebox 是给el-table设置的类名
//设置$TableBorder全局变量可以把body里所有的边框颜色设置一样
.tablebox {
  //表格四个边框的颜色
  // border: 1px solid #e7e6e6 !important;

  th.el-table__cell {
    border: none !important;
  }

  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper,
  .el-table__header,
  .vxe-table--header-wrapper,
  .vxe-table--header,
  .vxe-table--fixed-header-wrapper {

    //表头的样式
    th {
      word-break: break-word;
      background: #F2F2F2 !important;
      color: #fff !important;
      color: #000 !important;
      height: 40px !important;
      padding: 5px !important;
      font-size: 14px !important;
      font-weight: 500;
      // border-bottom: 1px solid #e7e6e6   !important;
      border-right: 1px solid #e7e6e6 !important;
    }
  }

  .el-table__body-wrapper,
  .vxe-table--body-wrapper,
  .vxe-body--row {

    //table_body单元格的样式
    td {
      // background-color: $TableStyle !important;
      text-align: center;
      color: black;
      height: 40px !important;
      padding: 0;
    }
  }
  // 解决最后一页的bug
  .vxe-body--column:not(.col--ellipsis){
    padding: 0 !important;
  }
  .vxe-footer--row {
    td {
      // background-color: $TableStyle !important;
      text-align: center;
      color: black;
      height: 40px !important;
      padding: 0 !important;
    }
  }
  .el-table__footer-wrapper {
    td {
      // background-color: $TableStyle !important;
      text-align: center;
      color: black;
      height: 40px !important;
      padding: 10px 5px;
    }
  }

  .el-table--border .el-table__cell,
  .el-table__body-wrapper td {
    //body里y轴的样式
    border-right: 1px solid #e7e6e6 !important;
  }

  td.el-table__cell {
    //body里x轴的样式
    border-bottom: 1px solid #e7e6e6 !important;
  }

  .el-table__fixed-body-wrapper {

    //table_body单元格的样式
    td {
      // background-color: $TableStyle !important;
      text-align: center;
      color: black;
      height: 40px !important;
      padding: 10px 5px;
    }
  }

  .el-table--border .el-table__cell,
  .el-table__body-wrapper td {
    //body里y轴的样式
    border-right: 1px solid #e7e6e6 !important;
  }

  td.el-table__cell {
    //body里x轴的样式
    border-bottom: 1px solid #e7e6e6 !important;
  }

  .el-table__fixed-body-wrapper td {
    padding: 0;
    height: 40px !important;
  }
}

// 滚动条样式
.el-table__body-wrapper::-webkit-scrollbar-track {
  background-color: #efefef;
}

.el-table__body-wrapper::-webkit-scrollbar {
  width: 7px;
  height: 8px;
  opacity: 0.5;
}

.el-table__body-wrapper::-webkit-scrollbar-thumb {
  border-radius: 15px;
  background-color: #bebebe;
}
::-webkit-scrollbar {
  width: 7px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: #efefef;
}

::-webkit-scrollbar {
  width: 7px;
  height: 8px;
  opacity: 0.5;
}

::-webkit-scrollbar-thumb {
  border-radius: 15px;
  background-color: #bebebe;
}

.tablebox2 {
  //表格四个边框的颜色
  border: 1px solid #eee !important;

  th.el-table__cell {
    border: none !important;
  }

  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {

    //表头的样式
    th {
      word-break: break-word;
      background: #f0f8ff !important;
      color: black !important;
      height: 40px !important;
      padding: 5px;
      font-size: 13px;
      // border-bottom: 1px solid #eee   !important;
      // border-right: 1px solid #eee  !important;
    }
  }

  .el-table__body-wrapper {

    //table_body单元格的样式
    td {
      // background-color: $TableStyle !important;
      text-align: center;
      color: black;
      height: 40px !important;
      padding: 0;
    }
  }

  // .el-table--border .el-table__cell, .el-table__body-wrapper td {
  //   //body里y轴的样式
  //   // border-right: 1px solid #eee   !important ;
  // }
  // td.el-table__cell{
  //   //body里x轴的样式
  //   border-bottom: 1px solid #eee  !important  ;
  // }
  .el-table__fixed-body-wrapper {

    //table_body单元格的样式
    td {
      // background-color: $TableStyle !important;
      text-align: center;
      color: black;
      // height: 30px !important;
      padding: 0;
    }
  }

  // .el-table--border .el-table__cell, .el-table__body-wrapper td {
  //   //body里y轴的样式
  //   border-right: 1px solid #eee   !important ;
  // }
  // td.el-table__cell{
  //   //body里x轴的样式
  //   border-bottom: 1px solid #eee   !important  ;
  // }
}

.eloption .el-select-dropdown__wrap {
  // background-color: bisque !important;
  max-height: 200px !important;
}

// .el-collapse-item__content{
//   background-color:#eee;
// }

.el-checkbox-button.is-disabled.is-checked .el-checkbox-button__inner {
  background-color: #d9dbdd;
}

// .el-checkbox-button.is-disabled.is-checked{
//   // background-color: #d9dbdd;
//   border: 1px solid #eee;
// }

.addBtn {
  background-color: #0052D9;
  color: #fff;
  width: 82px;
  height: 32px;
  border: none;
  border-radius: 2px;
  margin-bottom: 16px; 
  &:hover {
    background-color: #366EF4;
    color: #fff;
    width: 82px;
    border: none;
  }
  &:active {
    background-color: #366EF4;
    color: #fff;
    width: 82px;
    border: none;
  }
  &:focus {
    background-color: #366EF4;
    color: #fff;
    width: 82px;
    border: none;
  }
  &:disabled {
    color: #fff;
    background-color: #B5C7FF;
    border: none;
    cursor: not-allowed;
  }
  &:disabled:hover {
    color: #fff;
    background-color: #B5C7FF;
    border: none;
    cursor: not-allowed;
  }
}
.delBtn {
  background-color: #D54941;
  color: #fff;
  width: 82px;
  height: 32px;
  border: none;
  border-radius: 2px;
  margin-bottom: 16px;
  &:hover {
    background-color: #F6685D;
    color: #fff;
    width: 82px;
    border: none;
  }
  &:active {
    background-color: #F6685D;
    color: #fff;
    width: 82px;
    border: none;
  }
  &:focus {
    background-color: #F6685D;
    color: #fff;
    width: 82px;
    border: none;
  }
  &:disabled {
    color: #fff;
    background-color: #FFB9B0;
    border: none;
    cursor: not-allowed;
  }
  &:disabled:hover {
    color: #fff;
    background-color: #FFB9B0;
    border: none;
    cursor: not-allowed;
  }
}

.celBtn {
  background-color: #E7e7e7;
  color: #000;
  width: 82px;
  height: 32px;
  border: none;
  border-radius: 2px;
  margin-bottom: 16px;
  &:hover {
    background-color: #DCDCDC;
    color: #000;
    width: 82px;
    border: none;
  }
  &:active {
    background-color: #DCDCDC;
    color: #000;
    width: 82px;
    border: none;
  }
  &:focus {
    background-color: #DCDCDC;
    color: #000;
    width: 82px;
    border: none;
  }
}




.el-dialog {
  .el-input__inner {
    background-color: #fff;
    border: 1px solid #DCDCDC;
  }
  .el-input,.el-textarea,.el-select,.el-cascader {
    width: 70%;
    .el-input{
      width: 100%;
    }
  }
  .el-pagination__sizes{
    width: 110px;
    .el-select{
      width: 100% !important;
    }
  }
  .el-dialog__header{
    padding: 14px 24px;
    border-bottom: 1px solid #DCDCDC;
  }
  .el-dialog__body{
    padding: 20px 24px;
    .el-form{
      .el-form-item{
        &:nth-last-child(1){
          margin-bottom: 0 !important;
        }
      }
    }
  }
  .el-dialog__footer{
    border-top: 1px solid #DCDCDC;
    padding: 14px 24px;
  }
  .el-button{
    margin-bottom: 0;
  }
}

.el-input__count,.el-range-input,.el-input__count-inner{
  background-color: rgba(240, 243, 245, 1) !important;
}
.el-input__inner,.el-textarea__inner {
  background-color: rgba(240, 243, 245, 1);
  border: 1px solid #f2f2f2;
}
.el-input.is-disabled .el-input__inner{
  background-color: rgba(240, 243, 245, 1);
  border: 1px solid #f2f2f2 !important;
}
.searchBox {
  .el-form-item {
    // margin-bottom: 24px !important;
    margin-bottom: 12px !important;
  }
}

.el-form-item__label-wrap {
  margin: 0px !important;
  font-weight: 400 !important;
  font-size: 14px;
}

.el-form-item__label {
  font-size: 14px;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.9);
}

.el-pagination {
  .el-input__inner {
    background-color: #fff !important;
    border: 1px solid #DCDCDC !important;
  }

  .number,
  .btn-prev,
  .btn-next,
  .more {
    background-color: #fff !important;
    border: 1px solid #DCDCDC !important;
  }

  .active {
    background-color: #0052D9 !important;
    color: #fff !important;
  }
}


// 搜索框样式
.searchBox {
  border-bottom: 1px solid #E5E6EB;
  margin-bottom: 16px;

  .serTlt {
    font-weight: 500;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.9);
    line-height: 24px;
    margin-bottom: 16px;
  }

  .serFlexBox {
    display: flex;
    width: 100%;
    font-weight: 400 !important;
    font-size: 14px;

    .inputBox {
      width: 92%;

    }

    .el-range-input {
      background: #F2F2F2 !important;
    }

    .btnBox {
      flex: 1;
      height: 88px;
      border-left: 1px solid #E5E6EB;
      padding-left: 32px;
      margin-bottom: 6px;

      .searchBtn {
        display: block;
        width: 82px;
        height: 32px;
        background: #0052D9;
        border-radius: 2px 2px 2px 2px;
        font-size: 14px;
        color: #FFFFFF;
        text-align: center;
        line-height: 32px;
        padding: 0 !important;
        margin: 0 !important;
        // margin-bottom: 24px !important;
        margin-bottom: 12px !important;
        &:hover {
          background-color: #366EF4 !important;
          color: #fff;
          width: 82px;
          // border: none;
        }
        &:active {
          background-color: #366EF4;
          color: #fff;
          width: 82px;
          // border: none;
        }
        &:focus {
          background-color: #366EF4;
          color: #fff;
          width: 82px;
          // border: none;
        }
        &:disabled {
          color: #fff;
          background-color: #B5C7FF;
          // border: none;
          cursor: not-allowed;
        }
        &:disabled:hover {
          color: #fff;
          background-color: #B5C7FF;
          // border: none;
          cursor: not-allowed;
        }
      }

      .resetBtn {
        display: block;
        margin: 0 !important;
        width: 82px;
        height: 32px;
        padding: 0 !important;
        background: #F2F3F5;
        border-radius: 2px 2px 2px 2px;
        font-weight: 400;
        font-size: 14px;
        text-align: center;
        line-height: 32px;
        color: rgba(0, 0, 0, 0.9);
      }
    }
  }
}


.flexContent {
  display: flex;
  // justify-content: space-between;
  flex-direction: column;
  height: 100%;
  padding: 18px;

  .table {
    flex: 1;
    display: flex;
    // flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
  }
  .paginationBox{
    padding-top: 20px;
    height: 50px;
  }
  .returnBtn{
    align-self: flex-end;
    .el-button{
      margin-bottom: 0;
    }
  }
}

.submitBtn{
  width: 88px;
  height: 32px;
  background: #0052D9;
  border-radius: 3px 3px 3px 3px;
  color: rgba(255,255,255,0.9);
  text-align: center;
  &:hover {
    background-color: #366EF4 !important;
    color: #fff;
     width: 88px;
    border: none;
  }
  &:active {
    background-color: #366EF4;
    color: #fff;
     width: 88px;
    border: none;
  }
  &:focus {
    background-color: #366EF4;
    color: #fff;
     width: 88px;
    border: none;
  }
  &:disabled {
    color: #fff;
    background-color: #B5C7FF;
    border: none;
    cursor: not-allowed;
  }
  &:disabled:hover {
    color: #fff;
    background-color: #B5C7FF;
    border: none;
    cursor: not-allowed;
  }
}

.cell{
  .el-input__inner{
    margin-top: 5px;
  }
}
//checkBox自定义禁用样式
.el-checkbox__input.is-disabled + .el-checkbox__label {
  color: #808080 !important;
}

//输入框 还有 textarea 禁用状态下颜色改变
.el-input.is-disabled .el-input__inner,textarea:disabled{
  color: #6f7174 !important;
}